<?php


namespace app\model;


class Shop extends BaseModel
{
    public function WxCode()
    {
        return $this->hasOne(ShopConfig::class, 'shop_id', 'id')
            ->field('id,shop_id,wxmini_appid,wxmini_appsecret');
    }
}